package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RoomInfoMapper;
import com.ruoyi.system.domain.RoomInfo;
import com.ruoyi.system.service.IRoomInfoService;

/**
 * 房间信息管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-05
 */
@Service
public class RoomInfoServiceImpl implements IRoomInfoService 
{
    @Autowired
    private RoomInfoMapper roomInfoMapper;

    /**
     * 查询房间信息管理
     * 
     * @param roomId 房间信息管理主键
     * @return 房间信息管理
     */
    @Override
    public RoomInfo selectRoomInfoByRoomId(Long roomId)
    {
        return roomInfoMapper.selectRoomInfoByRoomId(roomId);
    }

    /**
     * 查询房间信息管理列表
     * 
     * @param roomInfo 房间信息管理
     * @return 房间信息管理
     */
    @Override
    public List<RoomInfo> selectRoomInfoList(RoomInfo roomInfo)
    {
        return roomInfoMapper.selectRoomInfoList(roomInfo);
    }

    /**
     * 新增房间信息管理
     * 
     * @param roomInfo 房间信息管理
     * @return 结果
     */
    @Override
    public int insertRoomInfo(RoomInfo roomInfo)
    {
        return roomInfoMapper.insertRoomInfo(roomInfo);
    }

    /**
     * 修改房间信息管理
     * 
     * @param roomInfo 房间信息管理
     * @return 结果
     */
    @Override
    public int updateRoomInfo(RoomInfo roomInfo)
    {
        return roomInfoMapper.updateRoomInfo(roomInfo);
    }

    /**
     * 批量删除房间信息管理
     * 
     * @param roomIds 需要删除的房间信息管理主键
     * @return 结果
     */
    @Override
    public int deleteRoomInfoByRoomIds(Long[] roomIds)
    {
        return roomInfoMapper.deleteRoomInfoByRoomIds(roomIds);
    }

    /**
     * 删除房间信息管理信息
     * 
     * @param roomId 房间信息管理主键
     * @return 结果
     */
    @Override
    public int deleteRoomInfoByRoomId(Long roomId)
    {
        return roomInfoMapper.deleteRoomInfoByRoomId(roomId);
    }
}
